import request from '@/utils/request'


export function list(params) {
  return request({
    url: 'buss/todoTitleRule/list',
    method: 'get',
    params
  })
}

export function add(data) {
  return request({
    url: 'buss/todoTitleRule/save',
    method: 'post',
    data
  })
}

export function edit(data) {
  return request({
    url: 'buss/todoTitleRule/save',
    method: 'post',
    data
  })
}

export function del(ids) {
  return request({
    url: 'buss/todoTitleRule/del',
    method: 'post',
    data: ids
  })
}

export function getOne(id) {
  return request.get('buss/todoTitleRule/getOne?id='+id)
}

export default {add, edit, del, list,getOne}
